package com.keba.lamp.complaint.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.keba.basic.base.mapper.SuperMapper;
import com.keba.lamp.complaint.entity.Case;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 诉讼状案件
 * </p>
 *
 * @author twg
 * @date 2025-03-14 21:47:52
 * @create [2025-03-14 21:47:52] [twg] [代码生成器生成]
 */
@Repository
public interface CaseMapper extends SuperMapper<Case> {

    @InterceptorIgnore(tenantLine = "true", dynamicTableName = "true")
    Case getByIdAndUserIdAndAppId(@Param("id") Long id, @Param("userId") Long userId, @Param("appId") String appId);

    @InterceptorIgnore(tenantLine = "true", dynamicTableName = "true")
    List<Case> listByPhone(String phone);

    @InterceptorIgnore(tenantLine = "true", dynamicTableName = "true")
    int updateUserIdByPhone(@Param("userId") Long userId, @Param("phone") String phone);

}


